﻿using Common.DataModels;

namespace PLC.Domain.Dto;

public class DtoDeviceConfig:BaseDto
{
    
    /// <summary>
    /// 设备Id
    /// </summary>
    public long DeviceId { get;  set; }
    /// <summary>
    /// 设备名称
    /// </summary>
    public string? DeviceName { get; set; }
    /// <summary>
    /// 设备ip
    /// </summary>
    public string Ip { get;  set; }
    /// <summary>
    /// 设备端口
    /// </summary>
    public int Port { get;  set; }
    /// <summary>
    /// macId
    /// </summary>
    public string MacId { get;  set; }
    /// <summary>
    /// 硬件类型(plc还是上位机)
    /// </summary>
    public int HardwareType { get;  set; }
    /// <summary>
    /// plc品牌
    /// </summary>
    public int? PlcManufacturer { get;  set; }
    /// <summary>
    /// plc通讯协议类型
    /// </summary>
    public int? Protocol { get;  set; }
    /// <summary>
    /// 排序值
    /// </summary>
    public int OrderNum { get;  set; }
    /// <summary>
    /// 状态(启用 停用)
    /// </summary>
    public int Status { get;  set; }
    /// <summary>
    /// 设备类型
    /// </summary>
    public int DeviceType { get;  set; }
}